package com.atguigu.yygh.oss.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/*==========================================
      时 间:   2022-03-14
      讲 师:   刘  辉
      描 述:   尚硅谷教学团队
 ==========================================*/
@ConfigurationProperties(prefix = "aliyun.oss.file")
@Data
@PropertySource("classpath:oss.properties")
@Component
public class OSSProperties {

    private String endpoint;
    private String keyid;
    private String keysecret;
    private String bucketname;
}
